Skip to main content

selectedRange

Type

property

Summary

The range of text of the widget that is selected.

Syntax

set the selectedRange of <widget> to <pRange>
get the selectedRange of <widget>

Description

Use the selectedRange property to determine the start index and the length of the text that is to appear as selected.

Examples

-- Select the first 20 chars of the field widget
set the selectedRange of widget "Android Text" to "1,20"

Compatibility and Support

OS

android